<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Laravel</title>
        <style>
            html, body {
                background-color: #fff;
                color: #636b6f;
                font-family: 'Nunito', sans-serif;
                font-weight: 200;
                height: 100vh;
                margin: 0;
            }
        </style>
        <script src="{{ admin_asset("vendor/laravel-admin/AdminLTE/plugins/jQuery/jQuery-2.1.4.min.js")}}"></script>
    </head>
    <body>
        <div class="box-body">
            <div class="row">
                <div class="col-md-12">
                    <div style="text-align: center; width: 500px; margin: 100px auto;">
                        {{ $message }}将在
                        <span class="jumpTime" style="color: red">3</span>
                        秒后<a href="/xqc/basics/amazon-account/{{ $id }}/edit" style="color: red">跳转</a>至账号编辑页面
                    </div>
                </div>
            </div>
        </div>
    </body>
    <script language="JavaScript" type="text/javascript">
        $(function () {
            var url = "/xqc/basics/amazon-account/{{ $id }}/edit";
            var jumpTime = parseInt($('.jumpTime').text());
            var time = setInterval(function(){
                jumpTime = jumpTime - 1;
                $('.jumpTime').text(jumpTime);
                if(jumpTime == 0){
                    clearInterval(time);
                    window.location.href = url;
                }
            },1000);
        });
    </script>
</html>
